/*
 * @Author: WangZhongDe
 * @Date: 2021-08-26 20:23:08
 * @LastEditors: WangZhongDe
 * @LastEditTime: 2021-08-26 20:51:04
 * @FilePath: \rust\learn2\src\main.rs
 */
fn main() {
    let guess:u32 = "23".parse().expect("Not a Number");
    let n = 23;
    let sum = guess + n;
    println!("{}",sum);
//   Tuple 
    let tup:(i32,String,f64) = (10,"wangzhongde".to_string(),2.30);
    let (x,y,z) = tup;
    println!("{}-{}",tup.0,tup.2); //因为tup.1在上行发生了赋值移动,所以在此tup.1就失效了,整型和浮点型在上行赋值时是复制的所以在此仍然有效
    println!("{},{},{}",x,y,z);

}
